#pragma once
#include "cocos2d.h"

#define EVENT_HOME_BUTTON_PRESSED "event_home_button_pressed"

using namespace cocos2d;

class PlayLayer : public Layer
{
	PlayLayer();
	~PlayLayer();
	static PlayLayer* thisLayer;

	void ComboTimer(float dt);
	void Timer(float dt);
	void pauseCallBack();
    void onHomeButtonPressed(Ref* );
    
public:
	static PlayLayer* getInstance();
	static Scene* createScene();
	static void addScore();
	static void subScore();
	static void addTime(int value);
	void stopGame();
	void continueGame();
	static void disposeLayer();

	virtual bool init();

	CREATE_FUNC(PlayLayer);
};

